define(function(require, exports, module) {
  'use strict';

  var LoginView = require('views/user/login.view'),
    VerifyCodeView = require('views/user/verifyCode.view'),
    UserRegisterView = require('views/user/userRegister.view'),
    SettingView = require('views/user/setting.view'),
    PersonalView = require('views/user/my.view'),
    MyView = require('views/user/personal.view'),
    PostMessageView = require('views/user/postMessage.view'),
    SearchHeaderView = require('views/user/search.view');

  var AppRouter = Backbone.Router.extend({
    currentView: null,
    routes: {
      'login': 'login',
      'verify-code': 'verifyCode',
      'user-register': 'userRegister',
      'setting': 'setting',
      'my': 'my',
      'personal': 'personal',
      'search': 'search',
      'post-message': 'postMessage'
    },
    switchView: function(view){
      
    },
    login: function() {
      return new LoginView();
    },
    verifyCode: function() {
      return new VerifyCodeView();
    },
    userRegister: function() {
      return new UserRegisterView();
    },
    setting: function() {
      return new SettingView();
    },
    my: function() {
      return new MyView();
    },
    personal: function() {
      return new PersonalView();
    },
    search: function() {
      return new SearchHeaderView();
    },
    postMessage: function() {
      return new PostMessageView();
    }
  });

  return new AppRouter();
});
